package com.wx.tgp.jfinal.demo.validator;

import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;

/**
 * Created by Administrator on 2016/5/6.
 */
public class LoginValidator extends Validator {
    protected void validate(Controller controller){
        validateRequiredString("username","nameError","userName is Null");
        validateRequiredString("password","passError","password is Null");
    }
    protected void handleError(Controller controller){

    }
}
